package com.beamfield.dao.sys;

import com.beamfield.model.Health;
import com.beamfield.model.HealthExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface HealthMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Health record);

    int insertSelective(Health record);

    List<Health> selectByExample(HealthExample example);

    Health selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Health record, @Param("example") HealthExample example);

    int updateByExample(@Param("record") Health record, @Param("example") HealthExample example);

    int updateByPrimaryKeySelective(Health record);

    int updateByPrimaryKey(Health record);

    List<Health>  selectHealList(@Param("offset")long offset,@Param("limit")int limit,@Param("ecode")String ecode,@Param("name")String name,@Param("presasg")String presasg);

    long  countHealList(@Param("ecode")String ecode,@Param("name")String name,@Param("presasg")String presasg);

    int updateBeamIdByEcode(@Param("ecode") String ecode, @Param("beamId") String acBemaId);
}